package com.project.listener;

import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

/**
 * session属性监听接口
 */
public class SessionAttLis implements HttpSessionAttributeListener {
    //属性创建时触发
    @Override
    public void attributeAdded(HttpSessionBindingEvent se) {
        System.out.println("属性添加");
    }
    //属性删除时触发
    @Override
    public void attributeRemoved(HttpSessionBindingEvent se) {
        System.out.println("属性删除");
    }

    //属性修改时触发
    @Override
    public void attributeReplaced(HttpSessionBindingEvent se) {
        System.out.println("属性修改");
    }
}
